package com.train.batch.service;

import com.train.batch.resp.JobPageResp;
import com.train.batch.dto.JobPageDTO;
import com.train.common.resp.PageResp;
import org.quartz.SchedulerException;

import java.util.Date;

public interface QrtzJobRecordService  {

    void saveJob(String jobName, String groupName, String cronExpress) throws SchedulerException;

    void editJob(String jobName, String groupName, String cronExpress, Date nextTime);

    void editJobStatus(String jobName, String groupName) throws SchedulerException;

    void editExecuteTime(String jobName, String groupName) throws SchedulerException;

    void deleteJob(String jobName, String groupName);

    PageResp<JobPageResp> pageList(JobPageDTO pageDTO);
}
